package codetrainning.test8;
/*
//分析下面“成员内部类”程序的运行结果：
 */
//public class Demo {
    public class Demo{
        public static void main(String[] args){
            Outer.Inner obj = new Outer().new Inner();
            obj.show();
        }
    }

    class Outer{
        public int number = 10;
        class Inner{
            public int number = 20;
            public void show(){
                int number =30;
                System.out.println(number);
                System.out.println(this.number);
                System.out.println(Outer.this.number);
            }
        }
    }

    /*
    30
    20
    10
     */

//}
